/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jims.master.modules.doctor.netHosptial.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.doctor.netHosptial.entity.NetTestMaster;

import java.util.List;


/**
 * 检验主记录DAO接口
 * @author qlx
 * @version 2016-09-10
 */
@MyBatisDao
public interface NetTestMasterDao extends CrudDao<NetTestMaster> {

    /**
     * 获得患者未传送的信息
     * @param-patientId
     * @return
     */
    public List<NetTestMaster> getInfoToSend(NetTestMaster netTestMaster);

    //查询最大testNo
    public String findMaxNetTestMaster() ;

    //改变发送标志
    public Integer send(NetTestMaster netTestMaster);

    /**
     * 由挂号表关联检验
     * @param-clinicId
     * @return
     */
    public List<NetTestMaster> getByClinicId(NetTestMaster netTestMaster);

    public NetTestMaster getInfoByTestNo(NetTestMaster netTestMaster);

    /**
     * 查询患者所有的检验记录
     * @param-patientId
     * @param-visitId
     * @return
     */
    public List<NetTestMaster> findAllTest(NetTestMaster netTestMaster);

    /**
     * 得到病人的所有检查
     * @param patientId
     * @param visitId
     * @return
     */
    public List<BaseDto> getMaster(NetTestMaster netTestMaster);
}